package com.ttg.model.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ttg.common.config.LocalDateTimeDeserializer;
import com.ttg.common.config.LocalDateTimeSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author zhangHongYuan
 * @description
 * @date 2023/11/14 10:22
 */
@Data
public class VipGrowDetailDto implements Serializable {

    private static final long serialVersionUID = 1893810518351416328L;

    /**
     * 会员详情编号（自增主键）
     */
    @JsonProperty(value = "id")
    private Long id;

    /**
     * 任务id
     */
    @JsonProperty(value = "taskId")
    private Long taskId;

    /**
     * 会员编号
     */
    @JsonProperty(value = "vipId")
    private Long vipId;

    /**
     * 商户id
     */
    @JsonProperty(value = "mctNo")
    private Long mctNo;

    /**
     * 主体类型 0-银行账户 1-收单账户
     */
    @JsonProperty(value = "type")
    private Integer type;

    /**
     * 任务名称
     */
    @JsonProperty(value = "taskName")
    private String taskName;

    /**
     * 成长值数量
     */
    @JsonProperty(value = "growNum")
    private String growNum;
    /**
     * 变更后成长值（当前分值 + 加分分值）
     */
    @JsonProperty(value = "changeGrowNum")
    private Integer changeGrowNum;

    /**
     * 更新时间
     */
    @JsonProperty(value = "updateTime")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime updateTime;

}
